package com.kuzlak.cms.libraries;

import java.util.Random;

public class BaseChar {


    public static String getSecret(int len) {
        Random random = new Random();
        StringBuffer buf = new StringBuffer();
        long l = System.currentTimeMillis();
        String s = "1234567890qwertyuiopenasdfghjklzxcvbnm" + String.valueOf(l);
        char[] c = s.toCharArray();
        buf.append("wl");
        for (int i = 0; i < len; i++) {
            int i1 = random.nextInt(c.length);
            char c1 = c[i1];
            buf.append(c1);
        }
        // //System.out.println(buf.toString());
        return buf.toString();
    }

    public static void main(String[] args) {
        BaseChar.getSecret(18);
    }
}
